import { httpPost, httpGet, httpDel, httpPut } from '../index'

export function page (query) {
  return httpGet('/api/auth/client', query)
}

export function addObj (obj) {
  return httpPost('/api/auth/client', obj)
}

export function getObj (id) {
  return httpGet('/api/auth/client/' + id)
}

export function delObj (ids) {
  return httpDel('/api/auth/client/' + ids)
}

export function putObj (obj) {
  return httpPut('/api/auth/client', obj)
}

export function decrypt (id) {
  return httpGet('/api/auth/client/' + id + '/secret')
}
